home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
science
/
sm32a.zip
/
LIBRARY
/
ISMEMBER.LI
< prev
next >
Wrap
Text File
|
1993-12-27
|
209b
|
7 lines
# ismember(f,x) tests if x is a member of a list of f.
ismember(f_, x_) := if( islist(f),
block( j:=0, p:=0,
repeat( j:=j+1, if(member(f,j)== x, p:=1), p==1 or j >= length(f)),
p,
local(j,p) ), 0)